//package com.leexam.utils;
//
//import com.fasterxml.jackson.databind.ObjectMapper;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder;
//import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
//
//import java.text.DateFormat;
//import java.text.SimpleDateFormat;
//
///**
// * @author 窦康泰
// * @date 2021/01/07
// */
//@Configuration
//public class WebConfig {
//    @Autowired
//    private Jackson2ObjectMapperBuilder jackson2ObjectMapperBuilder;
//
//    @Bean
//    public MappingJackson2HttpMessageConverter MappingJsonpHttpMessageConverter() {
//        ObjectMapper mapper = jackson2ObjectMapperBuilder.build();
//        DateFormat dateFormat = mapper.getDateFormat();
//        mapper.setDateFormat(new MyDateFormat(dateFormat));
//        MappingJackson2HttpMessageConverter mappingJsonpHttpMessageConverter = new MappingJackson2HttpMessageConverter(mapper);
//        return mappingJsonpHttpMessageConverter;
//    }
//}
